import request from '@/utils/request'
export default{
     getChapterList(courseId) {
        return request({
            url: `/eduservice/chapter/getChapter/${courseId}`,
            method: 'get'
        })
    },
    removeById(id) {
        return request({
          url: `/eduservice/chapter/deleteChapter/${id}`,
          method: 'delete'
        })
      },
    
      save(chapter) {
        return request({
          url: '/eduservice/chapter/saveChapter',
          method: 'post',
          data: chapter
        })
      },
    
      getById(id) {
        return request({
          url: `/eduservice/chapter/getChapterById/${id}`,
          method: 'get'
        })
      },
    
      updateById(chapter) {
        return request({
          url: `/eduservice/chapter/updateChapter`,
          method: 'put',
          data: chapter
        })
    },
}